﻿using AntDesign;

namespace daonaite.ui.Util
{
    public class RulesHelp
    {
        /// <summary>
        /// 设置必填
        /// </summary>
        /// <param name="errmessage"></param>
        /// <returns></returns>
        public FormValidationRule[] required(string errmessage)
        {
            return new FormValidationRule[]
            {
                new FormValidationRule(){ Required=true, Message=errmessage }
            };
        }
    }
}
